
import basicWidgets from './cfg/widget-basic'
import layoutWidgets from './cfg/widget-layout'
import seniorWidgets from './cfg/widget-senior'

// 基础组件
export const basicFields = [
  ...basicWidgets
]

// 自定义组件
export const customFields = []

// 高级组件
export const advancedFields = [
  ...seniorWidgets
]

// 容器组件
export const containerFields = [
  ...layoutWidgets,
]


export function addBasicFieldSchema(fieldSchema) {
  basicFields.push(fieldSchema)
}

export function addCustomWidgetSchema(widgetSchema) {
  customFields.push(widgetSchema)
}

export function addAdvancedFieldSchema(fieldSchema) {
  advancedFields.push(fieldSchema)
}

export function addContainerWidgetSchema(containerSchema) {
  containerFields.push(containerSchema)
}